#ifndef MYTCPSERVER_H
#define MYTCPSERVER_H
#include <QTcpServer>
#include <QByteArray>
#include <QDebug>
#include <QMessageBox>
#include <QHostAddress>
#include <QFile>
#include <list>
#include "mytcpserver.h"
#include "mytcpsocket.h"


class MyTcpServer : public QTcpServer
{
    Q_OBJECT
public:
    MyTcpServer();
    static MyTcpServer &getInstance();
    void incomingConnection(qintptr socketDescriptor);//QtcpServer中的方法
    void resend(const char*pername,PDU *pdu);
private:
    QList<MyTcpSocket*> m_tcpSocketList;
public slots:
    void deleteSocket(MyTcpSocket *mysocket);
};

#endif // MYTCPSEQ_OBJECTRVER_H
